package newfeature.jdk8;

import java.util.Arrays;

/**
 * Created by dl
 */
public class Lambda {
	public static void main(String[] args) {
		Arrays.asList("a","b","c").forEach(element->System.out.println(element));

		Arrays.asList("a","b","c").forEach((String element) -> System.out.println(element));

		Arrays.asList("a","b","c").forEach((String element) -> {
			System.out.println(element);
		});
	}

	//@FunctionalInterface
}
